<?php
/**
 * Copyright (c) 2006, PORTALIER Julien
 *
 * Licensed under The LGPL License
 * Redistributions of files must retain the above copyright notice.
 *
 * @package      Feather's website
 * @copyright    Copyright (c) 2006, Julien PORTALIER
 * @link         http://feather.portalier.com
 * @license      http://www.opensource.org/licenses/lgpl-license.php The LGPL License
 */

abstract class ModuleTagModel extends TagModel
{
	protected $moduleClass;
	
	function getCloud($module_id=null, $limit=null)
	{
		$module  = $this->{$this->moduleClass};
		$this->join($module, $this->{$this->refererClass});
		$this->conditions(array("{$module->name}.{$module->primaryKey}" => $module_id));
		
		return parent::getCloud();
	}
}
?>